//
//  UIView+Layer.m
//  UkongM_1.7
//
//  Created by ukongm on 16/10/11.
//  Copyright © 2016年 ukongm. All rights reserved.
//

#import "UIView+Layer.h"
#import "XFManager.h"
@implementation UIView (Layer)

- (void)layerWithRadian:(CGFloat)radian{
    
    self.layer.cornerRadius = radian;
    self.layer.masksToBounds = YES;
    
}

- (void)lineViewShowWithFrame:(CGRect)frame{
    
    [self lineViewShowWithFrame:frame andLineColor:[UIColor red:238 green:238 blue:238]];
}

- (void)lineViewShowWithFrame:(CGRect)frame andLineColor:(UIColor*)color{
    CALayer* layer = [CALayer layer];
    
    layer.backgroundColor = color.CGColor;
    
    layer.frame = frame;
    
    [self.layer addSublayer:layer];
}

@end
